#!/bin/bash
. ~/.bash_profile

cd /home/ulss/project/dpl-data-indexer


count=`ps -ef|grep dpl-data-indexer|grep -v grep |grep -v  watchdog |wc -l`

timestr=`date +"%Y-%m-%d %H:%M:%S"`
if [ $count -lt 1 ]
 then
   nohup ./start.sh &
   echo " idx reboot  at $timestr ..." >>run.log
else
   echo " idx running ok  at $timestr ..." >>run.log

fi

